package edu.scau.DAO_mode.service;

import java.util.List;

import edu.scau.DAO_mode.model.User;

public interface UserService {

    public boolean deleteUser(User user) throws Exception;//根据主键删除一条记录
    public boolean updateUser(User user) throws Exception;//根据主键修改一条记录
    public boolean findUser(String username) throws Exception;//根据主键查找一条记录
    public User returnUser(String username) throws Exception;//根据用户名返回一条记录
    public List<User> findallUser() throws Exception;//返回user表所有数据
    public boolean register(User user) throws Exception;//新增一条user表中记录
    public boolean login(String username,String password) throws Exception;//登陆


}